package xin.huangyan.accessibilityapp;

import android.view.accessibility.AccessibilityNodeInfo;

/**
 * 查找view
 */
public abstract class FindViewCallback{
    public String id = null;
    public String text = null;
    public boolean fuzzy = true;
    public String className = null;
    public FindViewCallback setClassName(String className){
        this.className = className;
        return this;
    }

    public FindViewCallback setId(String id){
        this.id = id;
        return this;
    }

    public FindViewCallback setText(String text, boolean fuzzy) {
        this.text = text;
        this.fuzzy = fuzzy;
        return this;
    }

    abstract void result(AccessibilityNodeInfo nodeInfo);
}